package com.aceitunaproject.server.player;

import com.sun.sgs.app.ClientSession;

/**
 * Player manager interface implementation
 * 
 * @author Maciej Miechowicz
 */
public class PlayerManagerImpl implements PlayerManager {

	private PlayerService service;
	
    /**
	 * Creates a new instance of the manager
	 * 
	 * @param service backing player service
	 */
	public PlayerManagerImpl(PlayerService service) {
		this.service = service;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public Player getPlayer(ClientSession playerSession) {
		return service.getPlayer(playerSession);
	}
	
}
